package com.sunnada.edu.system.sysmodule.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public interface ModuleService {
	/***
	 * explain 总数量 
	 * @author chs 2015-5-12
	 * update chs 2015-5-12
	 * @param params
	 * @return int
	 */
	public int getModuleCots(HashMap<String, String> params);
	/**
	 * explain 查询功能  
	 * @author chs 2015-5-12
	 * update chs 2015-5-12
	 * @param params
	 * @return List<?>
	 */
	public List<?> findModules(HashMap<String, String> params);
	/***
	 * explain 模块删除 
	 * @author chs 2015-5-12
	 * update chs 2015-5-12
	 * @param params
	 * @return String
	 */
	public String moduleDel(HashMap<String, String> params);
	/***
	 * explain 模块添加保存
	 * @author chs 2015-5-12
	 * update chs 2015-5-12
	 * @param params
	 * @return String
	 */
	public String moduleAdd(HashMap<String, String> params);
	/***
	 * explain 模块修改保存
	 * @author chs 2015-5-12
	 * update chs 2015-5-12
	 * @param params
	 * @return String
	 */
	public String moduleUpdate(HashMap<String, String> params);
	/***
	 * explain 模块添加保存
	 * @author chs 2015-5-12
	 * update chs 2015-5-12
	 * @param params
	 * @return String
	 */
	public Map getModuleByRecId(HashMap<String, String> params);
	/***
	 * explain 模块树
	 * @author chs 2015-5-12
	 * update chs 2015-5-12
	 * @param params
	 * @return String
	 */
	public List moduleTree(HashMap<String, String> params);
	/***
	 * explain 模块树，全展开 同步加载 
	 * @author chs 2015-5-12
	 * update chs 2015-5-12
	 * @param params
	 * @return String
	 */
	public List moduleTree2(HashMap<String, String> params);
	/***
	 * explain 系统模块树，全展开 同步加载 
	 * @author chs 2015-5-12
	 * update chs 2015-5-12
	 * @param params
	 * @return String
	 */
	public List moduleTree3(HashMap<String, String> params);
	/***
	 * explain 模块启用功能 
	 * @author zjc 2015-5-26
	 * update zjc 2015-5-26
	 * @param params
	 * @return String
	 */
	public String moduleEnable(HashMap<String, String> params);
	/***
	 * explain 模块停用功能 
	 * @author zjc 2015-5-26
	 * update zjc 2015-5-26
	 * @param params
	 * @return String
	 */
	public String moduleDisable(HashMap<String, String> params);
}
